package com.lml.controller;

import com.lml.dao.StudentDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class StudentController {

    private final StudentDaoImpl studentDao;

    @Autowired
    public StudentController(StudentDaoImpl studentDao) {
        this.studentDao = studentDao;
    }

    public void find() {
        studentDao.selectAll();
    }
}
